luci-base: explicitly invoke busybox applet for password change
authorJo-Philipp Wich <[email protected]>
Tue, 25 Jan 2022 21:56:56 +0000 (22:56 +0100)
committerJo-Philipp Wich <[email protected]>
Tue, 25 Jan 2022 21:59:37 +0000 (22:59 +0100)
commit4ec18ec765b7529ebaeeec26e1b0961542d79684
tree6faaa62d3e548249899df3be3edbcbb3f795d492
parente927a11d4ed0b8beb60b184e70db110c154816dc
luci-base: explicitly invoke busybox applet for password change

Ensure to invoke the Busybox `passwd` applet to change the system password
in a non-interactive manner. Non-Busybox variants may not take the new
password input from stdin or use password hashes which are not supported
by musl's `crypt()` implementation by default.

Fixes: #5629
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 22e2bfb09667e167a93b5eca4487ac41669126d9)
modules/luci-base/root/usr/libexec/rpcd/luci